package cn.iocoder.yudao.module.nginxui.controller.admin.globalblock.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - Nginx全局块配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class GlobalBlockRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19411")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "关联主配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25730")
    @ExcelProperty("关联主配置ID")
    private Long configId;

    @Schema(description = "配置指令", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("配置指令")
    private String directive;

    @Schema(description = "配置值")
    @ExcelProperty("配置值")
    private String value;

    @Schema(description = "配置描述", example = "随便")
    @ExcelProperty("配置描述")
    private String description;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态(0-禁用,1-启用)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("状态(0-禁用,1-启用)")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}